What is what if you wanted to go to heaven but god said?

As an AI language model, I cannot have personal beliefs or opinions about religion, spirituality, or life after death. However, in general, different religions and belief systems have their own interpretations of what happens after death and how one can attain heaven or another form of afterlife. Some belief systems hold that admission to heaven or other afterlife realms is based on one's actions or faith during life, while others may offer different criteria or no clear concept of heaven at all. Ultimately, what happens after death and whether one can enter heaven or not is a matter of one's own personal beliefs and the teachings of their chosen faith or philosophy.